<div class="bjui-pageContent">
    <div data-layout-h="0">
        <div class="col-md-8">
        	<div class="row" style="margin-top:8px;">
        		<div class="bjui-layout" data-toggle="autoajaxload" data-url="${rootpath}/Flow/order_viewForm?orderid=${orderid}"
        				style="overflow: hidden;"></div>
        	</div>
        	<div class="row">
        		<table class="table table-bordered table-hover">
        			<tbody>
        				<!-- 处理按钮 -->
        				<tr>
        					<td style="width: 100px;">流程实例操作：</td>
        					<td style="text-align: center;">
        						<a href="${rootpath}/Snaker/orderview?orderid=${orderid}" data-toggle="dialog" data-id="snakerorderview" 
                        			data-width="980" data-height="780" data-mask="true" data-type="POST" 
                        			data-title="流程实例流程图" class="btn btn-blue">查看流程图</a>
        						<#if orderstatus==1>
        						<a type="button" class="btn btn-orange" href="${rootpath}/Flow/order_terminate?orderid=${orderid}" data-toggle="doajax">强制终止(无法复原)</a>
        						<a type="button" class="btn btn-red" href="${rootpath}/Flow/order_delete?orderid=${orderid}" data-toggle="doajax" data-confirm-msg="确定要删除吗？(谨慎操作)">删除流程实例及相关所有信息(谨慎操作)</a>
				        		</#if>
				        	</td>
        				</tr>
        			</tbody>
        		</table>
        	</div>
        	
        </div>
        <div class="col-md-4" style="padding-left:5px;padding-right:0px;">
        	<!-- 历史任务List -->
        	<table class="table table-bordered table-hover">
        		<thead>
        			<tr>
        				<th colspan="5" style="text-align: center;">历史任务</th>
        			</tr>
        			<tr>
        				<th width="85px">时间</th>
        				<th width="70px">任务名称</th>
        				<th width="45px">处理人</th>
        				<th width="35px">处理结果</th>
        				<th>处理说明</th>
        			</tr>
        		</thead>
        		<tbody>
        			<#list historyTasks as item>
        			<tr>
        				<td>${(item.finish_Time)!}</td>
        				<td>${(item.display_Name)!}</td>
        				<td>${(item.NAME)!}</td>
        				<td class="<#if item.flow_operate='转发'>info<#elseif item.flow_operate='驳回'>danger<#else>success</#if>">${(item.flow_operate)!}</td>
        				<td>${(item.flow_operate_mark)!}</td>
        			</tr>
        			</#list>
        		</tbody>
        	</table>
        </div>
    </div>
</div>
